package com.example.yingjiguanli_demo.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 学员对导师的反馈与评价表
 * </p>
 *
 * @author scj
 * @since 2024-12-07
 */
@Getter
@Setter
@TableName("teacher_feedbacks")
public class TeacherFeedbacks implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 反馈唯一标识
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 对应的匹配ID，关联 matches 表
     */
    private Integer matchId;

    /**
     * 评价的学员用户ID，关联 users 表
     */
    private Integer studentId;

    /**
     * 被评价的导师用户ID，关联 users 表
     */
    private Integer mentorId;

    /**
     * 评分，范围1到5
     */
    private Integer rating;

    /**
     * 评价评论
     */
    private String comments;

    /**
     * 反馈提交时间
     */
    private LocalDateTime submittedAt;
}
